package darknet.application.chat.spec;

import java.util.List;

/**
 *
 * @author yoyo
 */
public interface ObservableChannel {

    /**
     * Add a chat observer.
     *
     * @param toAdd The chat observer to add.
     */
    void addChannelObserver(ChannelObserver toAdd);

    /**
     * Remove a chat observer.
     *
     * @param toRemove The chat observer to remove.
     */
    void removeChannelObserver(ChannelObserver toRemove);

    /**
     * Get all chat observers.
     * @return
     */
    List<ChannelObserver> getChannelObservers();
}
